package com.wyq.group12.controller;

import com.wyq.group12.entity.PtUserEntity;
import com.wyq.group12.entity.SearchUserEntity;
import com.wyq.group12.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName UserController
 * @Description: //TODO 用户控制层
 * @Author wyq
 * @Date 2022/5/11 15:53
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;
    @RequestMapping("/queryUserListByName")
    @ResponseBody
    public List<PtUserEntity> queryUserListByName(SearchUserEntity search){
        return  userService.queryUserListByName(search);
    }

}

